import axios from "../utils/axiosUtils"

export const findAllProduct = () => {
    return axios.get("/goods/findGoods")
}
export const addProduct = (data) => {
    return axios.post("/goods/addGoods", data)
}
export const updateProduct = (data) => {
    return axios.post("/goods/updateGoods", data)
}
export const deleteProduct = (data) => {
    return axios.post("/goods/deleteGoods", data)
}
export const findProductByType = (data)=>{
    return axios.post("/goods/findGoodsByName",data)
}
export const findProductById = (data)=>{
    return axios.post("/goods/findGoodsById",data)
}